package com.artgogo.artgogoerp;

import android.app.Application;
import android.test.ApplicationTestCase;

import com.alibaba.fastjson.JSONException;
import com.artgogo.artgogoerp.util.ArtgogoUtil;
import com.artgogo.artgogoerp.util.LogUtil;

import com.alibaba.fastjson.JSONObject;

import java.io.IOException;

/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);

        JSONObject json = new JSONObject();
        try {
            json.put("test", "android-test");
            json.put("checkCode", 1);

            LogUtil.v("Response", ArtgogoUtil.getConnection(0, json));
        } catch (JSONException | IOException e) {
            e.printStackTrace();
        }
    }
}